package com.pxmeta.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pxmeta.user.entity.User;
import com.pxmeta.user.entity.UserFollow;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wcl
 * @since 2022-07-07
 */
public interface UserFollowMapper extends BaseMapper<UserFollow> {

    List<User> getFriendUsers(@Param("userId") Long userId,@Param("keyword") String keyword, @Param("page") Page<User> page, @Param("circleId") Long circleId,@Param("excludeUsernameList") List<String> excludeUsernameList);

    List<User> getFansUsers(@Param("userId") Long userId, @Param("page")IPage page);

    List<User> getFollowUsers(@Param("userId") Long userId, @Param("page")IPage page);
}
